package android.net;

import java.util.ArrayList;
import java.util.Hashtable;

import android.tether.data.ClientAdapter;
import android.tether.data.ClientData;

public class RouteTable {

	// TODO make this multihop
	public static Hashtable<String, RouteInfoRow> generateTable() {
		Hashtable<String, RouteInfoRow> htable = new Hashtable<String, RouteInfoRow>();
		ArrayList<ClientData> cdata = ClientAdapter.rows;
		for (int i = 0; i < cdata.size(); i++) {
			ClientData cd1 = cdata.get(i);
			htable.put(cd1.getIpAddress(), new RouteInfoRow(cd1.getIpAddress(), cd1.getIpAddress(), 1));
		}
		return htable;
	}
}
